package com.health.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ScrollView;
/** 
 * @author kincai 
 *  
 * @todo 自定义scrollview 解决scrollview和viewpage 手势滑动监听 
 *  
 * @package com.kincai.store.view.custom 
 *  
 * @time 2015-6-22 下午4:49:52 
 *  
 */  
	public class MyScroll extends ScrollView  
	{  
	  
	      
	    public MyScroll(Context context)  
	    {  
	        super(context);  
	  
	    }  
	  
	    public MyScroll(Context context, AttributeSet attrs)  
	    {  
	        super(context, attrs);  
	          
	    }  
	      
	    public MyScroll(Context context, AttributeSet attrs, int defStyle)  
	    {  
	        super(context, attrs, defStyle);  
	    }  
	      
	    @Override  
	    public boolean onInterceptTouchEvent(MotionEvent event)   
	    {  
	        boolean b = super.onInterceptTouchEvent(event);  
	        Log.e("Info","Return " + b + " From myScroll OnInterceptTouchEvent" + "---" + "GetActionEvent:" + event.getActionMasked());  
	        return b;  
	    }  
	      
	    @Override  
	    public boolean onTouchEvent(MotionEvent event)  
	    {  
	  
	        boolean b = super.onTouchEvent(event);  
	        Log.e("Info","Return " + b + " From myScroll OnTouchEvent" + "---" + "GetActionEvent:" + event.getActionMasked());  
	        return b;  
	    }  
	}  